/*
 *代码由框架生成,任何更改都可能导致被代码生成器覆盖
 *如果数据库字段发生变化，请在代码生器重新生成此Model
 */
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using VOL.Entity.SystemModels;

namespace VOL.Entity.DomainModels
{
    [Entity(TableCnName = "工序关联设备",TableName = "V_PROC_PROCESSListEQU",DetailTable =  new Type[] { typeof(PROC_PROCESSList_EQU)},DetailTableCnName = "PROC_PROCESSList_EQU")]
    public partial class V_PROC_PROCESSListEQU:BaseEntity
    {
        /// <summary>
       ///
       /// </summary>
       [Display(Name ="Order_Id")]
       [MaxLength(50)]
       [Column(TypeName="nvarchar(50)")]
       [Editable(true)]
       public string Order_Id { get; set; }

       /// <summary>
       ///
       /// </summary>
       [Display(Name ="Equipment_Id")]
       [MaxLength(50)]
       [Column(TypeName="nvarchar(50)")]
       [Editable(true)]
       public string Equipment_Id { get; set; }

       /// <summary>
       ///
       /// </summary>
       [Display(Name ="EquipmentCode")]
       [MaxLength(50)]
       [Column(TypeName="nvarchar(50)")]
       [Editable(true)]
       public string EquipmentCode { get; set; }

       /// <summary>
       ///工单
       /// </summary>
       [Display(Name ="工单")]
       [MaxLength(50)]
       [Column(TypeName="nvarchar(50)")]
       [Editable(true)]
       public string OrderCode { get; set; }

       /// <summary>
       ///工艺
       /// </summary>
       [Display(Name ="工艺")]
       [MaxLength(50)]
       [Column(TypeName="nvarchar(50)")]
       [Editable(true)]
       public string ProcessNameZH { get; set; }

       /// <summary>
       ///
       /// </summary>
       [Key]
       [Display(Name ="ProcessList_Id")]
       [Column(TypeName="uniqueidentifier")]
       [Editable(true)]
       [Required(AllowEmptyStrings=false)]
       public Guid ProcessList_Id { get; set; }

       /// <summary>
       ///工艺
       /// </summary>
       [Display(Name ="工艺")]
       [Column(TypeName="uniqueidentifier")]
       [Editable(true)]
       [Required(AllowEmptyStrings=false)]
       public Guid Process_Id { get; set; }

       /// <summary>
       ///工序
       /// </summary>
       [Display(Name ="工序")]
       [MaxLength(50)]
       [Column(TypeName="nvarchar(50)")]
       [Editable(true)]
       [Required(AllowEmptyStrings=false)]
       public string OperationId { get; set; }

       /// <summary>
       ///
       /// </summary>
       [Display(Name ="CreateBy")]
       [MaxLength(30)]
       [Column(TypeName="nvarchar(30)")]
       [Editable(true)]
       public string CreateBy { get; set; }

       /// <summary>
       ///
       /// </summary>
       [Display(Name ="CreateOn")]
       [Column(TypeName="datetime")]
       [Editable(true)]
       public DateTime? CreateOn { get; set; }

       /// <summary>
       ///
       /// </summary>
       [Display(Name ="UpdateBy")]
       [MaxLength(30)]
       [Column(TypeName="nvarchar(30)")]
       [Editable(true)]
       public string UpdateBy { get; set; }

       /// <summary>
       ///
       /// </summary>
       [Display(Name ="LastUpdateOn")]
       [Column(TypeName="datetime")]
       [Editable(true)]
       public DateTime? LastUpdateOn { get; set; }

       /// <summary>
       ///
       /// </summary>
       [Display(Name ="IsDeleted")]
       [Column(TypeName="bit")]
       [Editable(true)]
       public bool? IsDeleted { get; set; }

       /// <summary>
       ///工序
       /// </summary>
       [Display(Name ="工序")]
       [MaxLength(50)]
       [Column(TypeName="nvarchar(50)")]
       [Editable(true)]
       public string OperationName { get; set; }

       /// <summary>
       ///
       /// </summary>
       [Display(Name ="TaskNameZH")]
       [MaxLength(50)]
       [Column(TypeName="nvarchar(50)")]
       [Editable(true)]
       public string TaskNameZH { get; set; }

       /// <summary>
       ///
       /// </summary>
       [Display(Name ="EQUTask_Id")]
       [Column(TypeName="uniqueidentifier")]
       [Editable(true)]
       public Guid? EQUTask_Id { get; set; }

       /// <summary>
       ///
       /// </summary>
       [Display(Name ="OperationCode")]
       [MaxLength(50)]
       [Column(TypeName="nvarchar(50)")]
       [Editable(true)]
        public string OperationCode { get; set; }

       [Display(Name ="PROC_PROCESSList_EQU")]
       [ForeignKey("ProcessList_Id")]
       public List<PROC_PROCESSList_EQU> PROC_PROCESSList_EQU { get; set; }

    }
}